/**
 * Jaxson ajax
 *
 * Copyright Remedy Interactive, licensed under Apache version 2 license:
 *
 *  http://www.apache.org/licenses/LICENSE-2.0.html
 *
 * This notice must remain in all java source files.
 */
package org.jaxson.struts.charts.pie;

import org.jaxson.struts.charts.AbstractChart;
import org.jfree.data.general.DefaultPieDataset;

/**
 *  Class for creating a Pie Chart.
 * 
 * @author Joe Maisel
 *
 */
public class PieChart extends AbstractChart
{
	public PieChart()
	{
		setFormat( new PieChartFormat() );
		setRenderer( new PieChartRenderer() );
	}

	@Override
	public Class<DefaultPieDataset> datatype()
	{
		return DefaultPieDataset.class;
	}

	/**
	 * @see org.jaxson.struts.charts.AbstractChart#getRenderer()
	 */
	@Override
	public PieChartRenderer getRenderer()
	{
		return (PieChartRenderer)renderer;
	}

}
